"""
2022-7-3

"""

"""
# 计算 1~100 中能被3整除的数之和
sum0 = 0
for i in range(1, 100):
    if i % 3 == 0:
        sum0 += i
        print(i)
print(sum0)
"""

"""
# 计算从1到5的阶乘的和  1 + 2 + 6 + 24 + 120 = 153
sum1 = 0
tmp = 1
for i in range(1, 6):
    i *= tmp
    tmp = i
    sum1 += i
    print(i)
print(sum1)
"""


